package Day6Zuoye.Car;

public class Car {
    private String color;
    private String card;

    public void start(){
        System.out.println("启动");
    }
    public void speedup(){
        System.out.println("加速");
    }
    public void stop(){
        System.out.println("刹车");
    }

    public Car(String color, String card) {
        this.color = color;
        this.card = card;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }
}
